/**
 * 
 */
package com.cdhospital.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;

/**
 * @author Administrator
 *
 */
public class HtmlHandler extends Handler {

	/* (non-Javadoc)
	 * @see com.jfinal.handler.Handler#handle(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean[])
	 */
	@Override
	public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
		  System.out.println(target);
		  if (target.lastIndexOf(".html")!=-1) {
			target=target.substring(0,target.indexOf(".html"));
		}
		  nextHandler.handle(target, request, response, isHandled);
	}

}
